import { Ref } from 'vue'
import { ElUtil } from '@xtail/ui'

export const isContactPrevious = (elRef: Ref<HTMLElement | null | undefined>): boolean =>
  Boolean(elRef.value && ElUtil.isContactPrevious(elRef.value))

export type IsContactPreviousType = typeof isContactPrevious
